<template>
  <HeaderTitle :title="1"></HeaderTitle>
  <div class="logo">
    <img src="	https://yanxuan.nosdn.127.net/static-union/164793255107785e.png" alt="" class="logo-img" />
  </div>
  <div class="btn">
    <div class="sustain">仅支持手机号登录</div>
    <div class="phone login" @click="toLoginPage">
      <i class="phoneIcon"></i>
      手机号快捷登录
    </div>
    <br />
    <div class="email login">
      <i class="emailIcon"></i>
      邮箱账号登录
    </div>
  </div>
  <div class="footer">
    <div class="footer-inner">
      <p class="wx title">
        <van-icon name="wechat" class="icon" color="#7f7f7f" />
        <span class="name">微信</span>
      </p>
      <p class="qq title">
        <van-icon name="qq" class="icon" color="#7f7f7f" />
        <span class="name">QQ</span>
      </p>
      <p class="wb title line">
        <van-icon name="weibo" class="icon" color="#7f7f7f" />
        <span class="name">微博</span>
      </p>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue"
export default defineComponent({
  name: 'Login',
})
</script>

<script lang="ts" setup>
import HeaderTitle from "@/components/HeaderTitle/index.vue"
import { useRouter } from 'vue-router'
const router = useRouter()
function toLoginPage() {
  router.push('/phonelogin')
}
</script>

<style scoped lang="less">
.logo {
  height: 125px;

  .logo-img {
    position: absolute;
    width: 134px;
    height: 45px;
    top: 20%;
    left: 35%;
  }
}

.btn {
  position: absolute;
  top: 35%;
  left: 5%;
  height: 160px;
  .sustain{
    text-align: right;
    margin-bottom: 5px;
  }

  .login {
    position: relative;
    width: 335px;
    height: 47px;
    line-height: 47px;
    text-align: center;
    margin-bottom: 5px;
    color: #fff;
    font-size: 14px;
    border-radius: 5px;
  }

  .phone {
    background-color: #dd1a21;
    border: 1px solid transparent;

    .phoneIcon {
      width: 20px;
      height: 20px;
      position: absolute;
      top: 25%;
      left: 28%;
      // border: 1px solid #000;
      background-image: url(https://yanxuan-static.nosdn.127.net/hxm/yanxuan-wap/p/20161201/style/img/sprites/login-s5ca4cb2b91-2c606efd24.png?imageView&type=webp);
      background-size: 20px 140px;
      background-position: 0px -23px;
    }
  }

  .email {
    border: 1px solid #dd1a21;
    color: #dd1a21;

    .emailIcon {
      width: 20px;
      height: 20px;
      position: absolute;
      top: 27%;
      left: 30%;
      // border: 1px solid #000;
      background-image: url(https://yanxuan-static.nosdn.127.net/hxm/yanxuan-wap/p/20161201/style/img/sprites/login-s5ca4cb2b91-2c606efd24.png?imageView&type=webp);
      background-size: 20px 140px;
      background-position: 0px 0px;
    }
  }
}

.footer {
  width: 375px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  position: absolute;
  display: flex;
  justify-content: space-around;
  top: 90%;
  left: 5%;

  .footer-inner {
    width: 275px;
    display: flex;
    margin-left: -50px;

    .title {
      position: relative;
      display: flex;
      width: 90.6px;
      height: 20px;
      left: 5%;

      font-size: 14px;
      border-right: 1px solid #7f7f7f;

      .icon {
        width: 20px;
        height: 20px;
        line-height: 20px;
        position: absolute;
        left: 13%;
        top: 0;
        background-size: 98%;
      }

      .name {
        display: inline-block;
        width: 28px;
        height: 16px;
        margin: 0 auto;
        color: #7f7f7f;
        font-size: 14px;
      }
    }

    .line {
      border-right: none;
    }
  }
}</style>